package com.zzy.utils.validator.annotation;

import com.zzy.utils.validator.ListValueConstraintValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * @Author kazu
 * @Date 2023/2/6 12:02
 * @Version 1.0
 */
@SuppressWarnings({"all"})
@Documented
@Constraint(
		validatedBy = {ListValueConstraintValidator.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ListValue {
	
	String message() default "{com.zzy.utils.validator.annotation.ListValue.message}";
	
	Class<?>[] groups() default {};
	
	Class<? extends Payload>[] payload() default {};
	
	int[] vals() default {};
	
}
